<?php
$flashMessages = Yii::app()->user->getFlashes();
if ($flashMessages) {
    foreach($flashMessages as $key => $message) {
        echo '<div class="alert alert-' . $key . ' fade in"><button type="button" class="close" data-dismiss="alert">×</button>' . $message . "</div>\n";
    }
}
?>
<section class="system-record">
    <?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
        'id'=>'horizontalForm',
        'type'=>'horizontal',
    ));?>

    <fieldset>
        <legend>
            <?php echo Yii::t('app', 'Config system') ?>
        </legend>
        <?php if($systemModel): ?>
            <?php foreach($systemModel as $value): ?>
                <div class="control-group ">
                    <label for="system_<?php echo $value->id ?>" class="control-label required">
                        <?php echo Yii::t('app', $value->note) ?> <span class="required">*</span>
                    </label>
                    <div class="controls">
                        <?php echo CHtml::textArea($value->name, $value->value, array('rows' => 8, 'class' => 'span5')) ?>
                    </div>
                </div>
            <?php endforeach ?>
        <?php endif ?>


    </fieldset>
    <div class="form-actions">
        <?php
        $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType' => 'submit',
            'type' => 'primary',
            'label' => Yii::t('app', 'Submit'),
            'icon' => 'plus-sign white'
        ));
        ?>
    </div>
    <?php $this->endWidget();?>
</section>